package com.alks.function.service;

import com.alks.entity.data.entity.PcStitchWorkerRep;
import com.alks.entity.data.entity.PcStitchWorkerReq;
import com.alks.entity.data.entity.SdUser;
import com.alks.entity.data.response.ResponseInfo;
import com.alks.function.data.request.sys.SdUserAddRequest;
import com.alks.function.data.request.sys.SdUserRequest;
import com.alks.function.data.request.sys.SdUserUpdateRequest;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface SdUserService extends IService<SdUser> {

    ResponseInfo getUser(SdUserRequest request);

    ResponseInfo updateUser(SdUserUpdateRequest sdUser);

    ResponseInfo updatePwd(String userId);

    ResponseInfo workerList(PcStitchWorkerReq req);

    ResponseInfo insertWorker(PcStitchWorkerRep req);

    ResponseInfo deleteStitchWorkersByIds(List<String> ids);

    ResponseInfo updateStitchWorker(List<String> ids, String line);

    ResponseInfo addUser(SdUserAddRequest request);

    ResponseInfo delUser(String userId);

    ResponseInfo updatePassword(String userId, String oldPassword, String newPassword);

    ResponseInfo workName(String workId);

    ResponseInfo updatePasswordLogin(String engName, String oldPassword, String newPassword);
}
